package com.houtaipeingboot.service.impl;


import com.houtaipeingboot.mapper.UserDao;
import com.houtaipeingboot.pojo.User;
import com.houtaipeingboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao ud;
    @Override
    public List<User> getUserDapartName() {
        List<User> list = ud.getUserDapartName();
        return list;
    }

    @Override
    public List<User> getUserByDapartName(String depart, String name) {
        List<User> list = ud.getUserByDapartName(depart, name);
            return list;


    }
}
